#include "mystdio.h"


int main()
{
   myFILE* fp = myfopen("log.txt", "r"); 
   if(!fp)
   {
       perror("open");
       exit(1);
   }

   const char* str = "hello\n";
   int cnt = 10;

   while(cnt--)
   {
        mywrite(str, strlen(str), fp);
        sleep(1);
   }
    
   myclose(fp);
   return 0;
}
